package fun.easycode.webterminal.dao;

import fun.easycode.webterminal.common.contract.Enumerator;

/**
 * 隧道类型
 * @author xuzhen97
 */
public enum TunnelType implements Enumerator<Integer> {
    /**
     * 本地端口映射
     */
    LOCAL(1, "本地端口映射"),
    /**
     * 远程端口映射
     */
    REMOTE(2, "远程端口映射"),
    /**
     * 动态端口映射
     */
    DYNAMIC(3, "动态端口映射")
    ;

    private final Integer value;
    private final String desc;

    TunnelType(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    @Override
    public String toString() {
        return String.valueOf(getValue());
    }
}
